package com.ziroom.xiaoyf.simplesb.controller;

import java.net.InetAddress;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWord {

    @RequestMapping("/helloworld")
    public String helloWorld(){
        String ip = "未知";
        try {
            ip = InetAddress.getLocalHost().getHostAddress();
        }catch(Exception exp){

        }
        return "helloWorld,我的ip是:"+ip;
    }
}
